<el-dialog title="发布公告" v-model="addFormDialog">
<el-form ref="addForm" :rules="addRules" :model="addForm"  :label-width="dialogLabelWidth">
 <el-row>
   <el-col :span="10">
      <el-form-item label="公告标题" prop="title">
        <el-input v-model="addForm.title" placeholder="请填写公告标题"></el-input>
      </el-form-item>
   </el-col>
   <el-col :span="12">
      <el-form-item label="公告类型" prop="type">
        <el-select v-model="addForm.type" placeholder="请选择总结类型">
          <el-option v-for="(value,key) in NoticeType" :label="value" :value="key"></el-option>
        </el-select>
      </el-form-item>
   </el-col>
 </el-row>
 <el-row>
   <el-col :span="20">
     <el-form-item label="公告内容" prop="content">
       <el-input v-model="addForm.content" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" placeholder="请填写公告内容"></el-input>
     </el-form-item>
   </el-col>
 </el-row>
 <el-row>
   <el-col :span="10">
     <el-form-item label="开始日期" prop="start">
        <el-date-picker v-model="addForm.start" type="date" placeholder="请选择开始日期"></el-date-picker>
     </el-form-item>
   </el-col>
   <el-col :span="12">
     <el-form-item label="截止日期" prop="end">
        <el-date-picker v-model="addForm.end" type="date" placeholder="请选择截止日期"></el-date-picker>
     </el-form-item>
   </el-col>
 </el-row>
</el-form>
  <div slot="footer" class="dialog-footer">
    <include file="Common:_add" />
  </div>
</el-dialog>

